<?php
namespace app\model;
use core\lib\model;

/**
* userModel
*/
class userModel extends model
{
	public $table = 'user';
	public function lists()
	{
		return $this->select($this->table, '*');
	}

	public function getOne($id)
	{
		return $this->get($this->table, '*', array(
			'id' => $id
		));
	}

	public function setOne($id, $data)
	{
		return $this->update($this->table, $data, array(
			'id' => $id
		));
	}

	public function del($id)
	{
		return $this->delete($this->table, array(
			'id' => $id
		));
	}
}